package com.iteaj.iot.test.taos;

import com.iteaj.iot.taos.STable;
import com.iteaj.iot.tools.annotation.IotField;

import java.util.Date;

@STable(value = "meters", table = "'t_'+#root.sn", tagsResolver = "taosTagResolver", using = true, tags = {"location"})
public class TaosTestEntity {

    @IotField
    private Date ts;

    @IotField
    private String sn;

    public TaosTestEntity(String sn) {
        this.sn = sn;
        this.ts = new Date();
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }
}
